package game;

public class Main {
	public static void main(String[] args) {
		Player player = new Player();
		Dice dice = new Dice();
		Engine engine = new Engine();
		int currentPlayer = 1;
		
		boolean won = false;
		
		while (!won) {
			System.out.println("Player "+ currentPlayer + "s turn. Press enter to roll dice.");
			
			won = engine.throwDice(player, dice, currentPlayer);
			
			currentPlayer = changePlayer(currentPlayer);
		}
	}
	
	public static int changePlayer(int currentPlayer) {
		if (currentPlayer == 1) {
			return 2;
		}
		else {
			return 1;
		}
	}
}
